<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>房源管理</title>
    <style type="text/css"> #customers { font-family:"Trebuchet MS", Arial, Helvetica, sans-serif; width:100%; border-collapse:collapse; } #customers td, #customers th { font-size:1em; border:1px solid #98bf21; padding:3px 7px 2px 7px; } #customers th { font-size:1.1em; text-align:left; padding-top:5px; padding-bottom:4px; background-color:#A7C942; color:#ffffff; } #customers tr.alt td { color:#000000; background-color:#EAF2D3; } </style>

</head>
<body>

<table id="customers">
    房源列表
    <a th:href="@{/housing/housingAdd}">添加房源</a>
    <tr>
        <th>id</td>
        <th>房源地址</th>
        <th>面积</th>
        <th>户型</th>
        <th>价格</th>
        <th>操作</th>
        <th>房源状态</th>
    </tr>
    <tr th:each="housing:${housingList}">
        <td th:text="${housing.id}"></td>
        <td th:text="${housing.houces}"></td>
        <td th:text="${housing.area}"></td>
        <td th:text="${housing.unitpe}"></td>
        <td th:text="${housing.price}"></td>
        <td></td>
           <td>
           <a th:href="@{${'/housing/housingEdit/'+housing.id}}" th:text="修改"></a>
       </td>
    </tr>
</table>

</body>
</html>